package com.whj.servicedriveruser.remote;

import com.whj.internalcommon.dto.ResponseResult;
import com.whj.internalcommon.response.TerminalResponse;
import com.whj.internalcommon.response.TrackResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther: wanghaijun
 * @Date: 2023/1/20 - 01 - 20 - 10:56 
 * @Description: com.whj.servicedriveruser.remote
 */

@FeignClient("service-map")
public interface ServiceMapClient {

    @RequestMapping(method = RequestMethod.POST, value = "/terminal/add")
    ResponseResult<TerminalResponse> addTerminal(@RequestParam String name, @RequestParam String desc);

    @RequestMapping(method = RequestMethod.POST, value = "/track/add/{tid}")
    ResponseResult<TrackResponse> addTrack(@PathVariable("tid") String tid);

}
